import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import 'right_message_logic.dart';

class RightMessageComponent extends StatelessWidget {
  RightMessageComponent({Key? key}) : super(key: key);

  final logic = Get.find<RightMessageLogic>();

  @override
  Widget build(BuildContext context) {
    return Obx(() => OverflowBox(
          alignment: Alignment.topLeft,
          minWidth: 32.w,
          maxWidth: 130.w,
          minHeight: 1024.h,
          maxHeight: 1024.h,
          child: Container(
              width: 130.w,

              child: Row(
                children: [
                  // 左边
                  buildMinRight(),
                  buildMessage(),
                ],
              )),
        ));
  }

  Widget buildMinRight() {
    return Container(
      width: 32.w,
      child: Column(
        children: [Text("123")],
      ),
    );
  }

  Widget buildMessage() {
    return Container(
      width: 98.w,
      child: Column(
        children: [Text("456")],
      ),
    );
  }
}
